<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="admin/inc/conn.inc"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>输入</title>
<link href="CSS/main.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function checkForm(form)
{
	if(form.title.value=="")
	{
		alert("标题不能为空");
		form.title.focus();
		return false;
	}
	if(form.text.value=="")
	{
		alert("内容不能为空");
		form.text.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body style="background-color:#fcf8e7;" >
<%if session("Nickname") = "" or session("Username") = "" or session("Password") = "" then%>
<div style="color: red;font-size: 16px;">未登录不能增加帖子</div>
<br />
<%
else
	Set rs = Server.CreateObject("ADODB.Recordset")
	strSQL = "select * from GameWiki where URL='" & SelfRequestString("name") & "'"
	rs.Open strSQL, dbconnection, adOpenDynamic, 3
	strID = rs("ID")
	set rs = nothing
%>
<form action="/createwiki.asp?ID=<%=strID%>" method="post" name="loginForm" target="_parent" id="loginForm" onsubmit="return checkForm(document.loginForm);" >
	<table>
		<tr>
			<td valign="middle" class="WikiSubmitText"> 标题： </td>
			<td valign="middle"><input name="title" id="title" type="text" size="131" maxlength="131" /></td>
		</tr>
		<tr>
			<td valign="top" class="WikiSubmitText"> 内容： </td>
			<td><textarea name="text" id="text" cols="100" rows="10"></textarea>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit" name="Submit" value="提交" />
				<input type="reset" name="Reset" value="清除" /></td>
		</tr>
	</table>
</form>
<%end if%>
</body>
</html>
<!--#include file="disconn.inc"-->
